package com.hotel.daos;

import com.hotel.entitys.Permission;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    public List<Permission> selPerByUser(@Param("telephone") String telephone, @Param("pid") Integer pid);
    public List<Permission> selAllPer(@Param("pid") Integer pid);
    public List<Integer> selPerByRid(@Param("rid") Integer rid);
    public int delPerByRid(@Param("rid") Integer rid);
    public int addPerByRid(@Param("rid") Integer rid,@Param("perids")List<Integer> perids);
    public List<Integer> selPerBySid(@Param("telephone") String telephone);
}
